@extends('admin.layout.layout')
@section('title')
<title>北京仁爱慈善后台</title>
@endsection
@section('con')
<title>北京市仁爱慈善后台</title>
@endsection
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">轮播图修改和删除</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="panel-body">
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
            <div class="panel-heading">
                修改和删除
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="dataTable_wrapper">
                    <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                        <thead>
                            <tr>
                                <th>轮播图</th>
                                <th>轮播图链接</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach($data as $k=>$v)
                            <tr class="odd gradeX">
                                <td><img src="{{asset($v->img)}}" width="200" height="100px" alt=""/></td>
                                <td>{{$v->link}}</td>
                            @if($v->pid == 0)
                            <tr class="odd gradeX">
                                <td><img src="{{asset($v->img)}}" width="200" height="100px" alt=""/></td>
                                <td>
                                    <a href="{{url('admin/tca/edit',['id'=>$v->id])}}"><button type="submit" class="btn btn-primary" style="margin-top:20px;">修改</button></a>
                                    <a href="{{url('admin/tca/delete',['id'=>$v->id])}}"><button type="reset" class="btn btn-danger" style="margin-top:20px;">删除</button></a>
                                </td>
                                <!-- <td class="center">4</td>
                                <td class="center">X</td> -->
                            </tr>
                            @endif
                            @endforeach
                        </tbody>
                    </table>
                </div>
                <!-- /.table-responsive -->
                <!-- <div class="well">
                    <h4>DataTables Usage Information</h4>
                    <p>DataTables is a very flexible, advanced tables plugin for jQuery. In SB Admin, we are using a specialized version of DataTables built for Bootstrap 3. We have also customized the table headings to use Font Awesome icons in place of images. For complete documentation on DataTables, visit their website at <a target="_blank" href="https://datatables.net/">https://datatables.net/</a>.</p>
                    <a class="btn btn-default btn-lg btn-block" target="_blank" href="https://datatables.net/">View DataTables Documentation</a>
                </div> -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
        </div>
    </div>
    <!-- /.row (nested) -->
</div>
<!-- /.panel-body -->
@endsection
